home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d6 / pct901.arc / RAMTAX90.BAT < prev    next >
DOS Batch File  |  1990-12-31  |  2KB  |  61 lines

  1. echo off
  2. rem RAMTAX90.BAT file ver 12-31-90
  3. cls
  4. %1:
  5. echo  
  6. if x%1==x goto param
  7. if x%2==x goto param
  8. IF %2 .== B: GOTO FOUND
  9. IF %2 .== C: GOTO FOUND
  10. IF %2 .== D: GOTO FOUND
  11. IF %2 .== E: GOTO FOUND
  12. IF %2 .== F: GOTO FOUND
  13. IF %2 .== b: GOTO FOUND
  14. IF %2 .== c: GOTO FOUND
  15. IF %2 .== d: GOTO FOUND
  16. IF %2 .== e: GOTO FOUND
  17. IF %2 .== f: GOTO FOUND
  18. :param
  19. echo ┌─────────────────────────────────────────────────────────────────┐
  20. echo │ When running the RAMTAX90 batch file key in TWO drive letters   │
  21. echo │ with the colons (:).                                            │
  22. echo │                                                                 │
  23. echo │ The first drive letter is the FROM drive.                       │
  24. echo │ The second drive letter is the RAM  drive.                      │
  25. echo │                                                                 │
  26. echo │ If you have your files on a disk in drive "B" and your RAM disk │
  27. echo │ is designated as drive "F" you would enter the following command│
  28. echo │ from the drive a prompt:                                        │
  29. echo │                                                                 │
  30. echo │              RAMTAX90 B: F:                                     │
  31. echo │                                                                 │
  32. echo └─────────────────────────────────────────────────────────────────┘
  33. pause
  34. cls
  35. GOTO STOP
  36. :FOUND
  37. echo  
  38. echo ┌────────────────────────────────────────────────────────────────┐
  39. echo │ You have chosen to run RAMTAX90 from drive "%1" to the         │
  40. echo │ RAM drive designated as the letter "%2"                        │
  41. echo │──────────────────────────────────────────────────────────────  │
  42. echo │ Remember: Drive "%2" must have 150 Kb free for one set of      │
  43. echo │ MTX** files.                                                   │
  44. echo │ If you are not sure that this is what you wanted,              │
  45. echo │ press the "Ctrl-Break" keys.                                   │
  46. echo │─────────────────────────────────────────────────────────────── │
  47. echo │ Otherwise ...                                                  │
  48. echo └────────────────────────────────────────────────────────────────┘
  49. pause
  50. ECHO ON
  51. copy %1MTX*.* %2
  52. PC-TAX90 DRIVE=%2
  53. COPY %2MTX*.* %1
  54. ERASE %2MTX*.*
  55. :ENDBAT
  56. echo off
  57. echo ┌──────────────────────────────────┐
  58. echo │  End of the RAMTAX90 batch file  │
  59. echo └──────────────────────────────────┘
  60. :stop
  61.